#ifndef INSTRUMENTVIEW_H
#define INSTRUMENTVIEW_H

#include "view.h"
#include "listview.h"
#include "button.h"
class App;

class InstrumentView : public View {
public:
     InstrumentView(Rect r, App *pApp);
     void setRect(Rect r);
     void keyDown(int keycode, int modifiers, int unichar);
     void updateEdInstNum(int inst);
     void updateListInstNum(int inst);
     void loadInstList();

private:
     static const int Padding = 2;
     App *m_pApp;
     ListView m_instList;
     boost::signals2::connection m_instListConn;
     boost::signals2::connection m_edInstConn;
     Button m_instAddButton;
     Button m_instDelButton;

     void connect();
     void addInst();
     void delInst();
};

#endif
